package com.pet.item.controller;


import com.pet.common.domain.UserContext;
import com.pet.item.utils.ItemCFUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户浏览记录表 前端控制器
 * </p>
 *
 * @author Cookies
 * @since 2024-09-12
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/browse-histories")
public class BrowseHistoryController {
    private final ItemCFUtil itemCFUtil;

    @GetMapping("/test")
    public void test() {
        int uid = UserContext.getUser();
        itemCFUtil.recommend(uid);
    }
}
